//
//  Global.swift
//  MyWeiBo
//
//  Created by mac on 15/3/2.
//  Copyright (c) 2015年 gpr. All rights reserved.
//

import Foundation

let WB_APP_KEY = "4168097019"
let WB_APP_SECRET = "627ba3d3701ae90133fccfc1c337d249"
let WB_REDIRECT_ADDR = "http://www.baidu.com"

let WB_NAMESPACE = "MyWeiBo"

let WB_SwithcToHomeController_Notification = "WB_SwithcToHomeController_Notification"
let WB_SwithcToOAuthController_Notification = "WB_SwithcToOAuthController_Notification"

func randomColor() -> UIColor {
    let r = arc4random_uniform(256)
    let g = arc4random_uniform(256)
    let b = arc4random_uniform(256)
    return UIColor(red: CGFloat(r)/255.0, green: CGFloat(g)/255.0, blue: CGFloat(b)/255.0, alpha: 1.0)
}

